from cocos.layer import Layer
from cocos.sprite import Sprite
from cocos.director import director

class L_MainMenu (Layer):
  is_event_handler=True

  def __init__(self):
    super(L_MainMenu,self).__init__()
    img=Sprite('title.png', anchor=(0,0))
    self.add(img)

  def on_mouse_press(self,x,y,button,modifier):
    director.scene.end(0)

